PATHMac OS 8 and 9 Developer Documentation > Human Interface Toolbox > Window Manager >

Programming With the Mac OS 8.5 Window Manager


CreateWindowFromResource

Creates a window from 'wind' resource data.

pascal OSStatus CreateWindowFromResource (
                     SInt16 resID,
                     WindowPtr *outWindow);
resID
The resource ID of a resource of type 'wind' . Pass in the ID of the 'wind' resource to be used to create the window.
outWindow
A pointer to a value of type WindowPtr . On return, the window pointer points to the newly created window.
function result
A result code. See Result Codes.
DISCUSSION

The CreateWindowFromResource function loads a window from a 'wind' resource. The Window Manager creates the window invisibly and places it at the front of the window list. After calling CreateWindowFromResource , you should set any desired associated data--using Window Manager or Control Manager accessor functions--then call the function TransitionWindow to display the window.

VERSION NOTES

Available with Mac OS 8.5 and later.


© 1999 Apple Computer, Inc. – (Last Updated 18 March 99)